import React from 'react';
import { Button } from 'antd';
import * as Icons from '@ant-design/icons';

export const RealButton = ({ text, iconName, ...props }) => {
  return (
    <Button icon={iconName ? React.createElement(Icons[iconName]) : null} {...props}>
      {text}
    </Button>
  );
};
